/*
 * Created by LiuYou on 2020/12/17.
 *
 */

#include "NvidiaGraphicsCard.hpp"
#include <utility>

NoteBook::GraphicsCard::NvidiaGraphicsCard::NvidiaGraphicsCard(int id, std::string feature) : id(id),
                                                                                              feature(std::move(
                                                                                                      feature)) {}

NoteBook::GraphicsCard::NvidiaGraphicsCard::~NvidiaGraphicsCard() = default;

int NoteBook::GraphicsCard::NvidiaGraphicsCard::getId() const {
    return id;
}

const std::string& NoteBook::GraphicsCard::NvidiaGraphicsCard::getFeature() const {
    return feature;
}

std::ostream&
NoteBook::GraphicsCard::operator<<(std::ostream& os, const NoteBook::GraphicsCard::NvidiaGraphicsCard& card) {
    os << static_cast<const GraphicsCard&>(card) << " id: " << card.id << " feature: " << card.feature;
    return os;
}
